/*
 * To change this template, choose Tools | Templates
 * and open the template in the editor.
 */
package database_objects;

/**
 *
 * @author pawel
 */
public class HireInfo {
    
    private String idOfHire;
    private User user;
    private Book book;
    
    private String dateOfHire;
    private String dateOfRet;
    
    private Integer time = 0;
    private Boolean actual = true;

    public HireInfo(String idOfHire, User user, Book book,
            String dateOfHire, String dateOfRet, Boolean actual) {
        this.idOfHire = idOfHire;
        this.user = user;
        this.book = book;
        this.dateOfHire = dateOfHire;
        this.dateOfRet = dateOfRet;
        this.actual = actual;
    }

    public void setBook(Book book) {
        this.book = book;
    }

    public void setDateOfHire(String dateOfHire) {
        this.dateOfHire = dateOfHire;
    }

    public void setDateOfRet(String dateOfRet) {
        this.dateOfRet = dateOfRet;
    }

    public void setIdOfHire(String idOfHire) {
        this.idOfHire = idOfHire;
    }

    public void setUser(User user) {
        this.user = user;
    }

    public Book getBook() {
        return book;
    }

    public String getDateOfHire() {
        return dateOfHire;
    }

    public String getDateOfRet() {
        return dateOfRet;
    }

    public String getIdOfHire() {
        return idOfHire;
    }

    public User getUser() {
        return user;
    }

    public void setTime(Integer time) {
        this.time = time;
    }

    public Boolean getActual() {
        return actual;
    }

    public void setActual(Boolean actual) {
        this.actual = actual;
    }
    
    
    
    
    
    
}
